#include<stdio.h>
#include<stdlib.h>
#include "linkedlistHeaderFile.h"
#include "linkedlistCFile.c"

//Main Function Starts
void main()
{
	int choice;
	int kontinue=1;
	l_node *start=readFromFile();
	while(kontinue==1)
	{
		printf("\nOperations you wish to perform:  \n");
		choice = displayOperations();
		
		start=performOperation(choice, start);
		
		printf("\nPress 1 to continue, or else any number to exit:");
		scanf("%d", &kontinue);
	}
	
	//writing back full linked list (amended or not), into persistent FILE
	writeToFile(start);
}
